﻿#ifndef SALESORDER_H
#define SALESORDER_H
#include "TaxStrategy.h"

class SalesOrder
{
public:
    SalesOrder(TaxStrategy* pStartegy);
    ~SalesOrder(){
        if(m_pStrategy)
        {
            delete this->m_pStrategy;
        }
    };
private:
    TaxStrategy* m_pStrategy;
public:
    double CalculateTax(){
        QString str;
        m_pStrategy->Calculate(str);
    }
};

#endif // SALESORDER_H
